; AutoHotkey script for assinging a hotkey to load the Google Tasks app
; Created by Noah Coad on 7/22/09
;
; Get AutoHotkey at http://www.autohotkey.com/
; ^=Ctrl #=Win +=Shift !=Alt

; Show Google Tasks with Win-A
#a::
  IfWinExist, Tasks ahk_class Chrome_WidgetWin_0
  {
    WinActivate
  }
  else
  {
    Run "C:\Users\noahc\AppData\Local\Google\Chrome\Application\chrome.exe" --app=https://mail.google.com/tasks/ig
    WinWait, Tasks ahk_class Chrome_WidgetWin_0
    WinActivate, Tasks ahk_class Chrome_WidgetWin_0
  }
return
